package com.czwx.bee.business.manager.modular.cloanuser.service.impl;

import com.czwx.bee.business.manager.modular.cloanuser.dto.CloanUserDto;
import com.czwx.bee.business.manager.modular.cloanuser.mapper.CloanUserDao;
import com.czwx.bee.business.manager.modular.cloanuser.model.CloanUser;
import com.czwx.bee.business.manager.modular.cloanuser.service.CloanUserService;
import com.czwx.bee.business.manager.modular.sys.model.User;
import org.beetl.sql.core.SQLManager;
import org.beetl.sql.core.SQLReady;
import org.beetl.sql.core.engine.PageQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class CloanUserServiceImpl implements CloanUserService {

    @Autowired
    private CloanUserDao cloanUserDao;

    @Autowired
    private SQLManager sqlManager;

    @Override
    public Long insert(CloanUser cloanUser) {
        return null;
    }

    @Override
    public Boolean update(CloanUser cloanUser) {
        return null;
    }

    @Override
    public Boolean del(CloanUser cloanUser) {
        return null;
    }

    @Override
    public CloanUser getById(Long id) {
        return null;
    }

    @Override
    public List<CloanUser> getList(Map map) {
        return null;
    }

    @Override
    public void getPageList(PageQuery query) {
        sqlManager.pageQuery("cloanuser.CloanUser.pageQuery",CloanUserDto.class,query);
    }

    @Override
    public Long getCount(CloanUser cloanUser) {
        return null;
    }

    @Override
    public CloanUser getBySelf(CloanUser cloanUser) {
        return null;
    }

    @Override
    public Long saveOrUpdate(CloanUser cloanUser) {
        return null;
    }

    @Override
    public PageQuery<User> test() {

        Map map=new HashMap();
        map.put("id",1);
       List<User>  users= sqlManager.execute(new SQLReady("select * from bp_user where id=#id#",map),User.class);
//         System.out.print(users);
        return null;
    }
}
